﻿@model VOD.Models.Comment

@{
    ViewBag.Title = "Delete";
}

<h1>确认删除</h1>

<h3>确认删除此评论？（注意：此评论的回复也会一起删除！）</h3>
<br />
    <div class="display-label">视频：</div>
    <div class="display-field">
        @Html.ActionLink(Model.Video.Name,"Play", "Video", new { id = Model.VideoID }, new { target = "_blank" })
    </div>
    <br />
    <div class="display-label">用户：</div>
    <div class="display-field">
        @if (Model.UserID == Guid.Empty)
        {
            @:匿名 
        }
        else { 
            var userName=Membership.GetUser(Model.UserID).UserName;
            @Html.ActionLink(userName,"Details", "UserMgr", new { user = userName }, new { target = "_blank" })
        }
    </div>
    <br />
    <div class="display-label">ParentID</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ParentID)
    </div>
    <br />
    <div class="display-label">评论内容：</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CommentContent)
    </div>
    <br />
    <div class="display-label">发布时间</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PostTime)
    </div>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="删除" /> |
        @Html.ActionLink("返回列表", "Index")
    </p>
}
